package com.ll.domain.classbase.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ll.domain.classbase.enums.CourseStatusEnum;
import com.ll.domain.classbase.enums.CourseTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CourseDTO {
    @ApiModelProperty(value = "ID", example = "10001")
    private Long id;

    @ApiModelProperty(value = "标题", example = "公开课")
    private String title;

    @ApiModelProperty(value = "讲师", example = "街霸")
    private String teacher;

    @JsonFormat(pattern = "MM/dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "开始时间", example = "2020-03-04 12:00")
    private Date startTime;

    @JsonFormat(pattern = "MM/dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间", example = "2020-03-04 13:00")
    private Date endTime;

    @ApiModelProperty(value = "状态CODE", example = "1")
    private Integer statusCode;

    @ApiModelProperty(value = "类型CODE", example = "1")
    private Integer typeCode;

    @ApiModelProperty(value = "当前报名人数", example = "10")
    private Integer applicants;

    @ApiModelProperty(value = "最大人数", example = "10")
    private Integer maxPeople;

    @ApiModelProperty(value = "备注信息", example = "10")
    private String extData;

    @ApiModelProperty(value = "报名状态CODE", example = "1")
    private Integer signupStatusCode;

    @ApiModelProperty(value = "课程状态", example = "1")
    private CourseStatusEnum status;

    @ApiModelProperty(value = "课程类型", example = "1")
    private CourseTypeEnum type;
}
